package com.hx.likeserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hx.likeserver.entity.Like;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LikeMapper extends BaseMapper<Like> {
    @Select("select * from user_like where user_id=#{userId}")
    List<Like> findLikeByUser(Integer userId);
}
